package com.mayuonline.puppyfood;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class SplashActivity extends Activity {
	int SPLASH_DISPLAY_LENGHT = 2000;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash);
        
        new Handler().postDelayed(new Runnable(){

            @Override

            public void run() {

                    /* Create an Intent that will start the Menu-Activity. */

                    Intent splash2 = new Intent(SplashActivity.this,DisclaimerActivity.class);

                    SplashActivity.this.startActivity(splash2);

                    SplashActivity.this.finish();
                    overridePendingTransition(R.anim.fadein,R.anim.fadeout);
            }

    }, SPLASH_DISPLAY_LENGHT);

    }
    
}